package com.fangs.lunbotu.utils;


public class APPUtils {

    private static final int MODE_ASK = 4;
    private static final int MODE_COMPAT = 5;
    private static final String CHECK_OP_NO_THROW = "checkOpNoThrow";
    private static final String OP_POST_NOTIFICATION = "OP_POST_NOTIFICATION";
    private static long lastClickTime;

    /**
     * 是否为重复的快速点击
     */
    public static boolean isFastDuplicateClick() {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        lastClickTime = time;
        return 0 <= timeD && timeD <= 800;
    }
}
